<?php /* Smarty version Smarty-3.1.13, created on 2013-07-09 05:42:59
         compiled from ".\templates\selectLoansAjax.tpl" */ ?>
<?php /*%%SmartyHeaderCode:168351db734cbca575-12505411%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2d9f2865d64ea4746d8adf25ed9d7f372040eadd' => 
    array (
      0 => '.\\templates\\selectLoansAjax.tpl',
      1 => 1373348520,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '168351db734cbca575-12505411',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51db734cc52562_05867974',
  'variables' => 
  array (
    'loans' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51db734cc52562_05867974')) {function content_51db734cc52562_05867974($_smarty_tpl) {?><table id="datatables" class="display">
  <thead>
    <tr>
    	<th>Delete</th>
    	<th>Loan Id</th>
      <th>partyName</th>
      <th>loanDate</th>
      <th>loanAmount</th>
      <th>interest</th>
      <th>installmentAmount</th>
      <th>installmentDays</th>
    </tr>
  </thead>
  <tbody>
    <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['name'] = 'rec';
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['loans']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['rec']['total']);
?> 
      <tr>
      	<td><a href="loansDelete.php?loanId=<?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['loanId'];?>
">Delete</a></td>
      	<td><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['loanId'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['partyName'];?>
</td>
        <td align="center"><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['loanDate'];?>
</td>
        <td align="right"><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['loanAmount'];?>
</td>
        <td align="right"><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['interest'];?>
</td>
        <td align="right"><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['installmentAmount'];?>
</td>
        <td align="right"><?php echo $_smarty_tpl->tpl_vars['loans']->value[$_smarty_tpl->getVariable('smarty')->value['section']['rec']['index']]['installmentDays'];?>
</td>
      </tr>
    <?php endfor; endif; ?>
  </tbody>
</table><?php }} ?>